#ifndef USER_H
#define USER_H

#include <QWidget>
#include <QScroller>
#include <QListWidget>
#include <QDialog>
#include <QMessageBox>

#include "senddialog.h"
#include "msgdialog.h"
#include "sqlite.h"
#include "returndialog.h"
#include "lend.h"

namespace Ui {
class User;
}

class User : public QWidget
{
    Q_OBJECT

public:
    explicit User(User_t user, QWidget *parent = nullptr);
    ~User();

    User_t user;

    void listWidgetAddItem(QString book, int sell, int num);
    void closeEvent(QCloseEvent *event) override;
public slots:
    void itemClicked(QListWidgetItem *item);

private slots:
    void on_pushButton_clicked();
    void sendBtn_click();
    void msgBtn_click();
    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();
signals:
    void sigClose();
private:
    Ui::User *ui;
};

#endif // USER_H
